const { defineConfig } = require('@vue/cli-service');
const webpack = require("webpack")
// 引入vant
const { VantResolver } = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');
module.exports = defineConfig({
  transpileDependencies: true,

  devServer: {
    proxy: {
      '/api': {
        target: 'http://wallpaper.apc.360.cn/index.php',
        pathRewrite: { '^/api': ' ' },
        ws: true,
        changeOrigin: true
      },
    }
  },
  // 配置插件参数
  configureWebpack: {
    plugins: [

      ComponentsPlugin({
        resolvers: [VantResolver()],
      }),
    ]
  },


})
